package com.vankimgps.listvehicles;

import com.vankimgps.activity.R;

import android.content.Context;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class ListVehiclesCell extends RelativeLayout {
	public TextView txtVehicleNo;
	public TextView txtSpeed;
	public TextView txtGas;
	public TextView txtDateTime;

	public ListVehiclesCell(Context context) {
		super(context);
		txtVehicleNo = (TextView) findViewById(R.id.txtVehicleNo);
	}
	
	public void setVeicleNo(String value){
		txtVehicleNo.setText(value);
	}
	
	public void setSpeed( float value){
		txtSpeed.setText(Float.toHexString(value));
	}
	
	public void setDateTiem(String value){
		txtDateTime.setText(value);
	}
	
	public void setGas(int  value){
		txtGas.setText(Integer.toString(value));
	}
}
